﻿<UserControl x:Class="JukeboxParty.VotingOption"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="150"  d:DesignWidth="456">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Image Name="AlbumArt" Grid.Column="0" Margin="0,0,15,0" Height="{Binding ElementName=InfoPanel, Path=ActualHeight}"/>
        <StackPanel x:Name="InfoPanel" Grid.Column="1">
            <TextBlock Name="ArtistName" FontSize="30" FontWeight="Bold"/>
            <TextBlock Name="AlbumName" FontSize="24"/>
            <TextBlock Name="SongName" FontSize="20"/>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                
                <Button Name="VoteUp" Content="Vote Up" Grid.Column="0" FontSize="16"/>
                <Button Name="VoteDown" Content="Vote Down" Grid.Column="1" FontSize="16"/>
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>